package hhm.javamode.proxy.dynamic;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class SendHandler implements InvocationHandler {
	private Object obj;

	public SendHandler(Object obj) {
		this.obj = obj;
	}

	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

		System.out.println("消息已经发送");
		Object result = method.invoke(obj, args);
		return result;

	}

}
